﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Payroll.Biz.Legacy.Models
{
    public class Paycheck
    {
        public DateTime PayDate { get; private set; }

        public DateTime PayPeriodStartDate { get; private set; }

        public DateTime PayPeriodEndDate { get { return this.PayDate; } }

        public decimal GrossPay { get; set; }

        public decimal Deductions { get; set; }

        public DispositionType Disposition { get; set; }

        public decimal NetPay { get { return GrossPay - Deductions; } }

        public Paycheck(DateTime payPeriodStartDate, DateTime payDate)
        {
            PayPeriodStartDate = payPeriodStartDate;
            PayDate = payDate;
        }
    }
}
